#include "stdafx.h"
#include<winsock2.h>
#include<windows.h>
#include<string>
#include"telnet.h"
#pragma comment(lib,"ws2_32.lib")
using namespace std;
_declspec(dllexport) int Start(G_information G_info, S_information S_info, string* stuff ,int size, int * Thread_Control)
{
	telnet TTnet(S_info.IP,S_info.Port,G_info.username,G_info.Password_default,G_info.Logcommand);
	TTnet.Thread_Control=Thread_Control;
	return TTnet.start(stuff,size);
	

}

_declspec(dllexport) string** SendCMD(Switch* pS,G_information G_info, S_information S_info, CMDLogs* pCommands,int size, bool True_False[][10], string& Now_CMD, int* Thread_Control)
{
	telnet TTnet(S_info.IP,S_info.Port,G_info.username,G_info.Password_default);
	TTnet.pS=pS;
	TTnet.G_info=G_info;
	TTnet.S_info=S_info;
	TTnet.Thread_Control=Thread_Control;
	TTnet.SendCommand(pCommands,size, True_False, Now_CMD);
	
	return TTnet.Log_ForCMD;

}